﻿using System;
namespace Xbb.Common.Helpers.Abstract
{
    public interface IDTransaction
    {

        TResult Use<TResult>(Func<TResult> action, System.Transactions.IsolationLevel level = System.Transactions.IsolationLevel.ReadUncommitted,
            TimeSpan? timeout = null);

        bool Use(Action action, System.Transactions.IsolationLevel level = System.Transactions.IsolationLevel.ReadUncommitted,
            TimeSpan? timeout = null);
    }
}
